<template>
	<view>
		<uni-load-more v-if="list.length === 0" status="loading" iconType="snow"></uni-load-more>
		<card-list v-for="(item,index) in list" :key='index' :item='item'></card-list>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			}
		},
		onLoad() {
			this.getMyArticle()
		},
		methods: {
			getMyArticle(){
				this.$api.getMyArticle().then(res=>{
					const {data} = res
					this.list = data
				})
			}
		}
	}
</script>

<style>

</style>
